/**
 * Todo: złaczyc klasy
 * 
 * 
 *
**/
package isogame {
	import flash.events.Event;
	import flash.events.IOErrorEvent;
	import flash.net.URLLoader;
	import flash.net.URLRequest;
	
	public class XmlLoader{
		private var xmlFile:String;
		public var xmlLoader:URLLoader;
		private var xmlData:XML;
		
		
		//---------------------------------------
		// CONSTRUCTOR
		//---------------------------------------
		public function XmlLoader(xml:String){
			xmlFile = xml;
			var xmlRequest:URLRequest = new URLRequest(xmlFile);
			
			xmlLoader = new URLLoader();
			
			try {
				xmlLoader.load(xmlRequest);
			}
			catch (error:SecurityError) {
				trace("A SecurityError has occurred.");
			}
		}
		
		//---------------------------------------
		// GETTER / SETTERS
		//---------------------------------------
		
		public function get xml():XML{
			return xmlData;
		}
		
		//---------------------------------------
		// PUBLIC METHODS
		//---------------------------------------
		
		
		//---------------------------------------
		// PRIVATE METHODS
		//--------------------------------------

		
	}// emd class
}// end package